<?php
$portfolioId = 11;

// Portfolio : auto évaluation
if ($_GET['autoeval'] == true)
$portfolioId = 12;

$coursTheorique['N1'] = 'PARTIE001';
$coursTheorique['N2MD'] = 'PARTIE003';
$coursTheorique['N2MS'] = 'PARTIE005';

$montrerResultatsTheoriques = true;

$utilisateurs = array(1,5925,5869,22746);

// Tables
$tableDocument = 'cl_C2iPFLdocument';
$tableDocumentCompetence = 'cl_C2iPFLdocumentCompetence';

$cheminDocuments = 'documents/';
$cheminSystemeDocument = get_path('rootSys').'portfolio/'.$cheminDocuments;

$mimeTypes = array(
	"application/pdf","text/HTML","text/plain","text/css"

       ,"image/gif","image/jpeg","image/png","image/bmp"

       ,"audio/mpeg","audio/x-wav","audio/x-ms-wma","application/ogg"

       ,"video/mpeg","video/quicktime","video/x-msvideo"

       ,"application/vnd.ms-word","application/vnd.ms-powerpoint","application/vnd.ms-excel","application/x-latex","text/rtf"
       ,"application/msword","application/mspowerpoint","application/msexcel"
       ,"application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.presentation","application/vnd.oasis.opendocument.graphics","application/vnd.oasis.opendocument.chart","application/vnd.oasis.opendocument.formula","application/vnd.oasis.opendocument.database","application/vnd.oasis.opendocument.image"

       ,"application/x-tar","application/zip"
);

$mimeTypesDesc = array('General'=>array('PDF','HTML','Texte brut','CSS'),
					   'Image'=>array('GIF','JPEG','PNG','BMP'),
					   'Audio'=>array('MP3','WAV','WMA','Ogg Vorbis'),
					   'Video'=>array('MPEG','Quicktime','WMV'),
					   'Bureautique'=>array('Word','Powerpoint','Excel','OpenOffice Writer','OpenOffice Impress','OpenOffice Calc','RTF','LateX'),
					   'Archivage'=>array('Zip','Tar')
);


// Taille en octet (10 Mo)
$tailleMaxRepertoireUser = 10485760;

$C2idispo = array("N1","N2MD","N2MS","N2MEAD");

// Activer la gestion des documents
$gestionDoc = true;

// Activer les différentes parties (Exp,N1,N2)
$partiesVisibles = array("Exp","N1","N2MD","N2MS","N2MEAD");





// Activer la gestion des documents en fonction du paramétrage composante

// Composantes acceptant la gestion des docs

// Classes du user
$tbl = claro_sql_get_main_tbl();
$sql = "SELECT class_id
    	FROM `".$tbl['rel_class_user']."`
	WHERE user_id = ".$userId;
$data = claro_sql_query_fetch_all_rows($sql);



// Conf générale C2i
$coeffNotePratique['N1'] = 40;
$coeffNoteTheorique['N1'] = 20;

$coeffNotePratique['N2MD'] = 40;
$coeffNoteTheorique['N2MD'] = 20;

$coeffNotePratique['N2MS'] = 40;
$coeffNoteTheorique['N2MS'] = 20;

$coeffNotePratique['N2MEAD'] = 40;
$coeffNoteTheorique['N2MEAD'] = 20;

// %age mini dans la compétence pratique pour le C2i
$noteEliminatoirePratique['N1'] = 0.8;
$noteEliminatoirePratique['N2MD'] = 0.25;
$noteEliminatoirePratique['N2MS'] = 0.25;

$noteEliminatoireTheorique['N1'] = 0.5;

//Cours théorique
$coursTheorique = 'PARTIE001';

?>
